<?php

class Controller_Select
{
    protected $mapper = null;
    
    public function __construct()
    {
        require_once '../model/db.php';
        require_once '../model/mapper.php';
        require_once '../model/entry.php';
        
        // create instances
        $this->mapper = new MapperEntry();
    }
    
    public function index()
    {   
        $entries = $this->mapper->getEntries();
        
        require_once '../view/header.php';
        require_once '../view/select.php';
        require_once '../view/footer.php';
    }
}